package Work4.Slay_the_Maze.Events;

import Work4.Slay_the_Maze.Player.Player;

public abstract class Events {
	private String name;
	private String infomation;
	public Events(String name,String infomation) {
		this.name=name;
		this.infomation=infomation;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getInfomation() {
		return infomation;
	}
	public void setInfomation(String infomation) {
		this.infomation = infomation;
	}
	public void Printinfo() {
		System.out.println(getName()+":"+getInfomation());
	}
	public abstract void doit(Player player);
}
